package com.azthink.chapter311.service.impl;

import com.azthink.chapter311.domain.Movie;
import com.azthink.chapter311.repository.MovieRepository;
import com.azthink.chapter311.service.MovieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MovieServiceImpl implements MovieService {
    @Autowired
    private MovieRepository movieRepository;
    @Override
    public Movie get(String name) {
        return movieRepository.findByName(name);
    }
}
